﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Water.Web.Controls.BaseInterface;
using Water.Resources.Globalize;
using Water.Web.Controls.TypeConverter;
using System.Drawing.Design;

namespace Water.Web.Controls
{
    [ToolboxItem(false)]
    [TypeConverter(typeof(IconItemConverter))]
    public class IconItem 
    {
        private string onClientClick;

        [Browsable(true), Category("Behavior"), GlobalizeDescription("OnClientClick"), NotifyParentProperty(true), Bindable(true)]
        public  string OnClientClick
        {
            get
            {
                return onClientClick;
            }
            set
            {
                onClientClick = value;
            }
        }

        private string navigateUrl;

        [Browsable(true), GlobalizeDescription("NavigateUrl"), Category("Appearance"), Bindable(true), Editor("System.Web.UI.Design.UrlEditor", typeof(UITypeEditor)), NotifyParentProperty(true)]
        public string NavigateUrl
        {
            get { return navigateUrl; }
            set { navigateUrl = value; }
        }
        private string target;

        [Browsable(true), GlobalizeDescription("Target"), Category("Behavior"), Bindable(true), NotifyParentProperty(true),TypeConverter(typeof(TargetConverter))]
        public string Target
        {
            get { return target; }
            set { target = value; }
        }
        private string toolTip;

        [Browsable(true), GlobalizeDescription("TitleText"), Category("Appearance"), Bindable(true), NotifyParentProperty(true)]
        public string ToolTip
        {
            get { return toolTip; }
            set { toolTip = value; }
        }
        private string imageUrl;

        [Browsable(true), GlobalizeDescription("ImageUrl"), Category("Appearance"), Bindable(true), Editor("System.Web.UI.Design.ImageUrlEditor", typeof(UITypeEditor)), NotifyParentProperty(true)]
        public string ImageUrl
        {
            get { return imageUrl; }
            set { imageUrl = value; }
        }

    }
}
